package com.dragon.mmochat.message;

import java.util.ArrayList;
import java.util.List;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_1_18C extends SkymobiProtocolMessage {
	List<Integer> versions = new ArrayList<Integer>();

	public Mmochat_1_18C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_1_18);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		int fileNum = in.getInt();
		for (int i = 0; i < fileNum; i++) {
			versions.add(in.getInt());
		}
	}

	public List<Integer> getVersions() {
		return versions;
	}

}